export default {
    // 开启命名空间
    namespaced: true,
    state: {
        name: "我是李四"
    },
    getters: {
        newName({ name }) {
            return name + '2222'
        }
    },
    mutations: {
        changeName(state) {
            state.name = "李四四"
        }
    },
    actions: {
        asyncFn() {
            console.log('我是李四模块的异步')
        }
    }
}